<?php get_header(); ?>



<div class="top">
  <div class="main">
    <div class="topbox">
      <p>Newsletter & Updates</p>
    </div>
  </div>
</div>

<div class="newbox">
  <div class="main">
    <div class="newboxs">

      <?php $post_query = new WP_Query('showposts=100');
      while (have_posts()) : the_post(); ?>

        <a href="<?php the_permalink(); ?>">
          <?php if (has_post_thumbnail()) : ?>

            <?php echo get_the_post_thumbnail($post->ID, 'news_img', array('alt' => $post->post_title)) ?>

          <?php else : ?>

            <?php if (get_post_meta(get_the_ID(), 'thumbnail', true)) : ?>

              <img src="<?php echo get_post_meta(get_the_ID(), 'attachment-portfolio-image wp-post-image', true) ?>">

            <?php endif; ?>

          <?php endif; ?>

          <span><?php the_title(); ?></span>
        </a>

      <?php endwhile; ?>




    </div>
  </div>
</div>










<script>
  $(function() {
    $("body").addClass("bj2")
  })
</script>


<?php get_footer(); ?>